package com.cfk.service.order;


import cfk.pojo.order.OrderQueryReq;
import cfk.pojo.order.OrderQueryResp;
import com.cfk.order.OrderService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

/**
 * @author baohuajie
 * @description: 订单服务
 * @date 2020/11/134:53 PM
 */
@RestController
public class OrderServiceImpl implements OrderService {

    private final Logger log = LoggerFactory.getLogger(OrderServiceImpl.class);

    @Override
    public OrderQueryResp queryLoanByLoanId(@RequestBody OrderQueryReq req) {

        log.info("========queryLoanByLoanId接口请求开始========");
        OrderQueryResp orderQueryResp = new OrderQueryResp();
        orderQueryResp.setLoanId(req.getLoanId());
        orderQueryResp.setLoanAmt(new BigDecimal("100.00"));
        log.info("========queryLoanByLoanId接口请求结束========");
        return orderQueryResp;

    }
}
